/****************************************************************************
**
** Copyright (C) 2012 Róbert Márki
**
** This file is part of Web Feeds.
**
** Web Feeds is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Web Feeds is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Web Feeds.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

#include "unreadcountsreply.h"

namespace NewsBlur
{
/*!
  \class UnreadCountsReply
  \brief The UnreadCountsReply class represents the reply
  of the NewsBlur server for a NewsBlurClient::TpRefreshUnreadCounts
  request.
*/

/*!
  Constructs a UnreadCountsReply object.
*/
UnreadCountsReply::UnreadCountsReply() :
    NewsBlurReply()
{
}

/*!
  Returns NewsBlurReply::RlUpdate.
*/
WebServiceReply::Role UnreadCountsReply::role() const
{
    return WebServiceReply::RlUpdate;
}

/*!
  Returns the number of unread stories for every feed, and for every story
  classification separetely.
*/
QHash<int, QHash<NewsBlurEnum::ClassifierValue, int> > UnreadCountsReply::unreadCounts() const
{
    return m_unreadCounts;
}
} // namespace NewsBlur
